


<?php

   $str="palabra,";
   echo  substr($str,0,strlen($str)-1);
   

   
?>